﻿using Dapr.Actors;
using FEShop.AppUserService.Services.Dtos.Account;
using FEShop.OpenModel.Common;

namespace FEShop.AppUserService.Services.Interfaces
{
    /// <summary>
    /// 账户服务接口
    /// </summary>
    public interface IAccountService : IActor
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        public Task<ResultObject<LoginOutputDto>> LoginAsync(LoginInputDto dto);

        /// <summary>
        /// 注册账号
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        public Task<ResultObject<string>> RegisterAsync(RegisterInputDto dto);

    }
}
